package game.classes.particles.displays
{
	import flash.display.Shape;
	
	public class Circle extends Shape
	{
		private var _color:uint;
		private var _radius:Number;
		
		public function Circle(radius:Number, color:uint = 0xFFFFFF)
		{
			this._color = color;
			this._radius = radius;
			this.draw();
		}
		
		private function draw():void
		{
			this.graphics.clear();
			this.graphics.beginFill(this._color);
			this.graphics.drawCircle(0, 0, this._radius);
			this.graphics.endFill();
		}
		
		public function get color():uint { return this._color; }
		public function set color(color:uint):void
		{
			this._color = color;
			this.draw();
		}
		
		public function get radius():Number { return this._radius; }
		public function set radius(radius:Number):void
		{
			this._radius = radius;
			this.draw();
		}
	}
}